//
//  HotAskViewCell.m
//  Hxcsfw
//
//  Created by 企友软mac on 2017/11/27.
//  Copyright © 2017年 企友软mac. All rights reserved.
//

#import "HotAskViewCell.h"

@implementation HotAskViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.btnAnswerNew setImage:[UIImage imageNamed:@"hot_playVedio.png"] forState:UIControlStateNormal];
    [self.btnAnswerPolicy setImage:[UIImage imageNamed:@"hot_playVedio.png"] forState:UIControlStateNormal];
    [self.btnAnswerReport setImage:[UIImage imageNamed:@"hot_playVedio.png"] forState:UIControlStateNormal];
    [self.btnAnswerReport setImageEdgeInsets:UIEdgeInsetsMake(10, 10, 10, 10)];
    [self.btnAnswerPolicy setImageEdgeInsets:UIEdgeInsetsMake(10, 10, 10, 10)];
    [self.btnAnswerNew setImageEdgeInsets:UIEdgeInsetsMake(10, 10, 10, 10)];

    _imgKcsdLeft.layer.masksToBounds = YES;
    _imgKcsdMiddle.layer.masksToBounds = YES;
    _imgKcsdRight.layer.masksToBounds = YES;

    _imgKcsdLeft.layer.cornerRadius = 6;
    _imgKcsdMiddle.layer.cornerRadius = 6;
    _imgKcsdRight.layer.cornerRadius = 6;

    _imgAnswerNew.layer.masksToBounds = YES;
    _imgAnswerPolicy.layer.masksToBounds = YES;
    _imgAnswerReport.layer.masksToBounds = YES;

    _imgAnswerNew.layer.cornerRadius = 6;
    _imgAnswerPolicy.layer.cornerRadius = 6;
    _imgAnswerReport.layer.cornerRadius = 6;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

- (IBAction)btnClick:(UIButton *)sender {

    if (self.delegate && [self.delegate respondsToSelector:@selector(delegatAskBtnClick:)]){
        [self.delegate delegatAskBtnClick:sender];
    }
}

@end
